package com.lsc.www.day02;

public class OperatorTest02 {
    public static void main(String[] args) {
        /*
        *赋值运算符
			基本赋值运算符
				=		赋值
			扩展赋值运算符
				+=  	可以理解为追加/累加
 				-=
				*=
			    /=
				%=
				* */

        int a = 10;
        int b = 20;
        int c = a+b;
        System.out.println(c);
        a += b; //a=a+b

        System.out.println(a);
        b -= a; //b=b-a
        System.out.println(b);

        int x = 5;
        int y = 2;
        x *= y; //x=x*y
        System.out.println(x);

        y /= x;//y=y/x
        System.out.println(y);

        int j = 10;
        int k = 5;
        j %= k; //j=j%k
        System.out.println(j);
    }
}
